import request from '/@/utils/request'
// 查询国标摄像头列表
export function listCameras(query:object) {
  return request({
    url: '/api/v1/system/cameras/list',
    method: 'get',
    params: query
  })
}
// 查询国标摄像头详细
export function getCameras(id:number) {
  return request({
    url: '/api/v1/system/cameras/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增国标摄像头
export function addCameras(data:object) {
  return request({
    url: '/api/v1/system/cameras/add',
    method: 'post',
    data: data
  })
}
// 修改国标摄像头
export function updateCameras(data:object) {
  return request({
    url: '/api/v1/system/cameras/edit',
    method: 'put',
    data: data
  })
}
// 删除国标摄像头
export function delCameras(ids:number[]) {
  return request({
    url: '/api/v1/system/cameras/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
